package com.zzx.test.future;

import com.zzx.test.entity.Dog;
import org.junit.Test;

public class SixteenClass1 {

    @Test
    public void instanceOfTestJdk16() {
        Object obj = "123";
        if (obj instanceof String s) {
            System.out.println(s.isBlank());
        }
    }

    @Test
    public void recordTest() {
        Dog dog = new Dog("w", 1);
        System.out.println(dog);
    }

}
